home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BlastDOS
/
[DOS_Application]_BIT_Software_-_BitCom_3.58c_-_Distribution_Disks.zip
/
BBSGET.ACT
< prev
next >
Wrap
Text File
|
1990-06-01
|
872b
|
28 lines
trace(1)
{ Action file to initiate receive from BBS }
{ Check if filename argument given, prompt if not }
@a = @1 {argument 1 move to variable @A}
if (@1 <> "") goto :noprompt {if argument is null go to noprompt}
@a = prompt("Enter receive filename: "); {ask for file name}
if (@a = "") exit; {no file name, exit}
@b = prompt("Enter X for Xmodem, A for Ascii: "); {ask file xmodem or ASC}
if (@b <> "x" and @b <> "a") exit "Don't understand ""@b"""; {check}
:noprompt {no prompt}
{******************************************}
{ask the host to download}
"d;@a"; @return;
cwait("?"); @b; @return;
{ASCII file transfer}
if (@b = "x") goto :xmodem
cwait("?");
@return;
recvfile(@a, "ascii", "$07$0D");
exit;
:xmodem
cwait("...");
recvfile(@a, "xmodem");